package br.com.testeoab.model;

import java.io.Serializable;

public class Perguntas implements Serializable {

	private static final long serialVersionUID = -7777319339580495264L;

	private Long lngId;
	private String strPergunta;
	private String strMateria;
	private int intIdMateria;

	public Long getLngId() {
		return lngId;
	}

	public void setLngId(Long lngId) {
		this.lngId = lngId;
	}

	public String getStrPergunta() {
		return strPergunta;
	}

	public void setStrPergunta(String strPergunta) {
		this.strPergunta = strPergunta;
	}

	public String getStrMateria() {
		return strMateria;
	}

	public void setStrMateria(String strMateria) {
		this.strMateria = strMateria;
	}

	public int getIntIdMateria() {
		return intIdMateria;
	}

	public void setIntIdMateria(int intIdMateria) {
		this.intIdMateria = intIdMateria;
	}

	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + intIdMateria;
		result = prime * result + ((lngId == null) ? 0 : lngId.hashCode());
		result = prime * result
				+ ((strMateria == null) ? 0 : strMateria.hashCode());
		result = prime * result
				+ ((strPergunta == null) ? 0 : strPergunta.hashCode());
		return result;
	}

	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		Perguntas other = (Perguntas) obj;
		if (intIdMateria != other.intIdMateria)
			return false;
		if (lngId == null) {
			if (other.lngId != null)
				return false;
		} else if (!lngId.equals(other.lngId))
			return false;
		if (strMateria == null) {
			if (other.strMateria != null)
				return false;
		} else if (!strMateria.equals(other.strMateria))
			return false;
		if (strPergunta == null) {
			if (other.strPergunta != null)
				return false;
		} else if (!strPergunta.equals(other.strPergunta))
			return false;
		return true;
	}

}
